package dialog.model;

import java.util.ArrayList;

import conditional.Conditional;



public class DialogChoice {

	private String text;
	private ArrayList<Conditional> conditionals;

	public DialogChoice(String text) {
		super();
		this.text = text;
		this.conditionals = new ArrayList<Conditional>();
	}

	public void addConditional(Conditional c) {
		conditionals.add(c);
	}

	public String getText() {
		return text;
	}

	public ArrayList<Conditional> getConditionals() {
		return conditionals;
	}

	public boolean isValid() {
		for (Conditional c : conditionals) {
//			if (!c.isValid()) {
//				return false;
//			}
		}
		return true;
	}

}
